from manim import *


class AddWithRunTimeScene(Scene):
    """
    创建 5x5 的圆圈，动态连续显示圆动画
    """

    def construct(self):
        circles = VGroup(*[Circle(radius=0.5) for _ in range(25)]).arrange_in_grid(5, 5)
        self.play(
            Succession(
                *[Add(circle, run_time=0.5) for circle in circles],
                rate_func=smooth,  # 平滑过渡
            )
        )
        self.wait()
